<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Visualizar Disciplina</h2>

            <p:panel styleClass="container_24 clearfix " style="background: none; border: none;"> 
                <h:form id="form" acceptcharset="utf-8">

                    <p class="subtitle">Dados Gerais</p>

                    <p:outputLabel value="Curso:" styleClass="grid_3" for="cursoInputText"
                                   rendered="#{managerPesquisarDisciplina.admin}"/>
                    <p:inputText id="cursoInputText" value="#{managerPesquisarDisciplina.disciplinaVisualizar.curso.nome}" 
                                 rendered="#{managerPesquisarDisciplina.admin}"
                                 styleClass="grid_7" readonly="true"/>
                    <div class="clear" />
                    
                    <p:outputLabel value="Código:" styleClass="grid_3" for="codigoInputText"/>
                    <p:inputText id="codigoInputText" value="#{managerPesquisarDisciplina.disciplinaVisualizar.codigo}" 
                                 styleClass="grid_7" readonly="true"/>

                    <p:outputLabel value="Ocupa sala:" styleClass="grid_3 alpha" for="ocupaSalaInputText" />
                    <p:inputText id="ocupaSalaInputText" styleClass="grid_8"
                                 readonly="true"
                                 value="#{managerPesquisarDisciplina.disciplinaVisualizar.ocupaSala ? 'Sim' : 'Não'}" />

                    <div class="clear"/>

                    <p:outputLabel value="Nome:" styleClass="grid_3" for="nomeInputText"/>
                    <p:inputText id="nomeInputText" value="#{managerPesquisarDisciplina.disciplinaVisualizar.nome}" 
                                 readonly="true" styleClass="grid_18"/>

                    <div class="clear"/>
                    <div class="buttonAction">
                        <p:button value="Voltar" icon="ui-icon-circle-arrow-w"
                                  href="pesquisardisciplina.xhtml"/>

                    </div>
                </h:form>
            </p:panel> 
        </ui:define>
    </ui:composition>
</html>